package com.proposition.commons.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;

/**
 * 角色表
 * @author yangkai
 *
 */
@Alias("role")
@TableName("p_role")
public class Role extends Model<Role> {

	/** 指定主键 */
	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@TableId
	private int id; //角色id
	@TableField("r_name")
	private String name; //角色名称
	@TableField("r_title")
	private String title; //角色标题
	@TableField("r_description")
	private String description; //角色描述
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	@Override
	public String toString() {
		return "Role [id=" + id + ", name=" + name + ", title=" + title
				+ ", description=" + description + "]";
	}


}
